package ioc02.service.impl;

import ioc02.dao.UserDao;
import ioc02.entity.User;
import ioc02.service.UserService;

/**
 * Author：汤小洋
 * Date：2023-09-19 11:20
 * Description：<描述>
 */
public class UserServiceImpl implements UserService {

    private UserDao userDao;

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    @Override
    public User login(String username, String password) {
        return userDao.selectByUsernameAndPassword(username,password);
    }
}
